package com.njworkorder.Config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SpringDocConfig {

    @Bean
    public OpenAPI springShopOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("南京工单")
                        .description("workOrder")
                        .version("1.0")
                        .contact(new Contact().name("Captain"))
                );
    }


//    @Bean
//    public GroupedOpenApi aoAPI() {
//        return GroupedOpenApi.builder()
//                .group("workOrder")
//                .pathsToMatch("/ao/**")
//                .build();
//    }


}
